<?php
// +----------------------------------------------------------------------
// | 萤火商城系统 [ 致力于通过产品和服务，帮助商家高效化开拓市场 ]
// +----------------------------------------------------------------------
// | Copyright (c) 2017~2023 https://www.yiovo.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed 这不是一个自由软件，不允许对程序代码以任何形式任何目的的再发行
// +----------------------------------------------------------------------
// | Author: 萤火科技 <admin@yiovo.com>
// +----------------------------------------------------------------------
declare (strict_types=1);

namespace app\common\enum\user\balanceLog;

use app\common\enum\EnumBasics;

/**
 * 余额变动场景枚举类
 * Class Scene
 * @package app\common\enum\user\balanceLog
 */
class Scene extends EnumBasics
{
    // 用户订单消费
    const CONSUME = 10;

    //用户订单退款
    const REFUND = 20;

    // 新用户注册领取现金券
    const REGACTIVITY = 30;

    //用户余额充值
    const RECHARGE = 40;

    // 管理员操作余额充值
    const ADMIN = 50;

    // 订单增送
    const ORDERGIVE = 60;
    /**
     * 获取订单类型值
     * @return array
     */
    public static function data()
    {
        return [
            self::CONSUME => [
                'name' => '用户订单消费',
                'value' => self::CONSUME,
                'describe' => '用户订单消费：%s',
            ],
            self::REFUND => [
                'name' => '订单退款',
                'value' => self::REFUND,
                'describe' => '订单退款：%s',
            ],
            self::REGACTIVITY => [
                'name' => '新用户赠送50元现金券',
                'value' => self::REGACTIVITY,
                'describe' => '%s',
            ],
            self::RECHARGE => [
                'name' => '余额充值',
                'value' => self::RECHARGE,
                'describe' => '%s',
            ],
            self::ADMIN => [
                'name' => '管理员操作',
                'value' => self::ADMIN,
                'describe' => '系统充值',
            ],
            self::ORDERGIVE => [
                'name' => '现金订单赠送',
                'value' => self::ORDERGIVE,
                'describe' => '现金订单赠送:%s',
            ],
        ];
    }

}
